<?php

declare (strict_types=1);

namespace app\shop\model\goods;

use app\common\model\goods\ServiceShop as ServiceShopModel;

/**
 * 商品服务与承诺模型
 * Class ServiceRel
 */
class ServiceShop extends ServiceShopModel
{
    /**
     * 新增记录
     * @param array $data
     * @return bool|false
     */
    public function add(array $data): bool
    {
        $data['store_id'] = self::$storeId;
        $data['shop_id'] = self::$shopId;
        return $this->save($data);
    }
}